package com.itaem.community.modules.infrastructure.authority.service.permission;

import com.itaem.community.modules.infrastructure.authority.dto.permission.PermissionDTO;
import com.itaem.community.modules.infrastructure.authority.entity.permission.PermissionEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author tomato
 * @since 2020-10-28
 */
public interface PermissionService extends IService<PermissionEntity> {

    /**
     * 根据权限id获取权限的所有信息
     *
     * @param permissionId 权限id
     * @return 权限的所有信息
     */
    PermissionDTO findPermissionById(Integer permissionId);

    /**
     * 根据权限id删除权限，接触与role的绑定
     *
     * @param permissionId 权限id
     * @return 删除结果
     */
    Boolean removePermissionById(Integer permissionId);
}
